package com.yh.workbill.ui.help;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;

import android.os.Bundle;
import android.view.View;

import com.bumptech.glide.Glide;
import com.yh.workbill.R;
import com.yh.workbill.base.BaseActivity;
import com.yh.workbill.databinding.ActivityHelpBinding;
import com.yh.workbill.databinding.LayoutHeadBinding;

public class HelpActivity extends BaseActivity {
    private ActivityHelpBinding binding;
    private LayoutHeadBinding layoutHead;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public void initView(@Nullable Bundle savedInstanceState) {
        binding = DataBindingUtil.setContentView(this, R.layout.activity_help);
        layoutHead = binding.layoutHead;
        layoutHead.setTitle("使用指导说明");
    }

    @Override
    public void initJetPack(@Nullable Bundle savedInstanceState) {

    }

    @Override
    public void initObserve(@Nullable Bundle savedInstanceState) {

    }

    @Override
    public void initBaseSetting(@Nullable Bundle savedInstanceState) {
        Glide.with(this).load("https://ossimg.ysmart.xyz/help_add0.jpeg").into(binding.iv1);
        Glide.with(this).load("https://ossimg.ysmart.xyz/help_add1.jpeg").into(binding.iv2);
        Glide.with(this).load("https://ossimg.ysmart.xyz/help_commit.jpeg").into(binding.iv3);
        Glide.with(this).load("https://ossimg.ysmart.xyz/help_count.jpeg").into(binding.iv4);
        Glide.with(this).load("https://ossimg.ysmart.xyz/help_download.jpeg").into(binding.iv5);
        Glide.with(this).load("https://ossimg.ysmart.xyz/help_send.jpeg").into(binding.iv6);
        Glide.with(this).load("https://ossimg.ysmart.xyz/help_add_finish.jpeg").into(binding.iv7);
    }

    @Override
    public void initClick(@Nullable Bundle savedInstanceState) {
        layoutHead.llBlack.setOnClickListener(v -> finish());
    }

    @Override
    public void initDefaultMethod(@Nullable Bundle savedInstanceState) {

    }
}
